<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<html>
	<head>
		<title>历史的流程变量数据</title>
		<%@ include file="/common/meta.jsp"%>
		<%@ include file="/common/jquery-ui-inc.jsp"%>
		<script>

$(function() {
	$('#lockList').datagrid( {
		title : '流程变量数据',
		loadMsg : '数据载入中，请稍后……',
		nowrap : false,
		collapsible : false,
		fitColumns : true,
		pagination : true,
		singleSelect : true,
		rownumbers : true,
		remoteSort : false,
		pageList : [ 15, 30, 50 ],
		idField : 'id',
		columns : [ [ {
			field : 'id',
			title : '序号',
			width : 220,
			sorter : function(a, b) {
				return (a > b ? 1 : -1);
			}
		}, {
			title : '执行者',
			field : 'assignee',
			width : 100
		}, {
			title : '状态',
			field : 'state',
			width : 100
		}, {
			title : '开始时间',
			field : 'createTime',
			width : 200
		}, {
			title : '结束时间',
			field : 'endTime',
			width : 200
		}, {
			title : '持续时间(秒)',
			field : 'duration',
			width : 200,
			formatter:function(value){
				return value/1000;
			}
		}] ]
	});
});
	function reload(){
		$('#lockList').datagrid("reload");
	}
	function lockQuery(){					
	    var queryParams = $('#lockList').datagrid('options').queryParams;
	      queryParams.lockCname = $('#lockCname').val();
	      queryParams.lockPath = $('#lockPath').val();
	      queryParams.actFullEname =$('#actFullEname').val();
	      queryParams.lockStatus = $('#lockStatus').val();
	      reload(); 
	  }
	function clearQuery(){					
	    $('#lockCname').val('');
	    $('#lockPath').val('');
	    $('#actFullEname').val('');
	    lockQuery(); 
	  }  
	  
			
	</script>
	</head>

	<body>
		<table id="lockList"></table>
	</body>
</html>